﻿import com.dinmax.factorium.*

class FactoriumShadow
extends MovieClip {
	
	private var bShadow:Boolean = false;
	
	function onLoad():Void {
		FactoriumApp.getApp().setShadow(this);
		return;
	};
	public function shadowIn():Void {
		if(!this.bShadow){
			this.bShadow = true;
			this.play();
		}
		return;
	};
	
	public function shadowOut():Void {
		if(bShadow){
			this.bShadow = false;
			this.onEnterFrame=function():Void {
				if(this._currentframe == 1){
					delete this.onEnterFrame;
				} else {
					this.prevFrame();
				}
				return;
			}
			return;
		}
	};
	
}; // end class